﻿using EventHandlerDemo.Domain.Bases;
using EventHandlerDemo.Domain.Orders.Events;

namespace EventHandlerDemo.Domain.Orders
{
    public class Order : Entity
    {
        public Order()
        {
            Raise(new OrderCreatedEvent(Guid.NewGuid(), this));
        }

        public int Id { get; set; }
        public string Name { get; set; }
    }
}